<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    li {
      line-height: 40px;
    }
    span {
      color: red
    }
  </style>
</head>
<body>
  <h2>模块模式</h2>
  <ul>
    <li>
     <h3>模块模式即通过单例去创建私有变量和特权方法的模式</h3>
    </li>
    <li>
      <h3>单例指的是只有一个实例的对象。<span>(创建一个简单的对象就是单例)</span></h3>
    </li>
  </ul>
  <script src="./javascript.js"></script>
</body>
</html>